package com.choudou5.solr.bean.common;

import com.choudou5.solr.framework.bean.BaseBean;
import com.choudou5.solr.framework.util.UserUtil;
import com.choudou5.solr.utils.UserUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * @name 基础用户Bean
 * @author choudou5
 * @date 2018-7-13
 */
public abstract class BaseUserBean<K extends Serializable> extends BaseBean<K> {
    /**
     *  创建人
     */
    private Integer createBy;
    /**
     * create_time 创建时间
     */
    private Date createTime;

    public Integer getCreateBy() {
        return createBy;
    }


    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    private String createByName;
    public String getCreateByName(){
        return UserUtils.getUserName(getCreateBy());
    }
    public void setCreateByName(String createByName){

    }
}
